﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IBMS.Page
{
    public partial class AllProjectsList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ListView1_ItemCommand(object sender, ListViewCommandEventArgs e)
        {
            if (e.CommandName == "MyDelete")
            {
                Label idLabel = (Label)e.Item.FindControl("IDLabel");
                Label nameLabel = (Label)e.Item.FindControl("NameLabel");
                Label ProjectIdLabel = (Label)e.Item.FindControl("ProjectIdLabel");
                Label VersionLabel = (Label)e.Item.FindControl("VersionLabel");
                
                Response.Redirect("ProjectModify.aspx?ProjectId="+ProjectIdLabel.Text.ToString());

            }
        }
    }
}